package com.imooc.trading_system.vo.address;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author Feng zhaoxi
 * @date 2022/4/24 9:56 下午
 * @Description
 */
@Data
public class AddAddressReqVO {
    @NotNull(message = "默认地址参数不能为空")
    @JsonProperty(value = "default_status")
    private Integer defaultStatus;

    @NotNull(message = "收发件人不能为空")
    @JsonProperty(value = "receive_name")
    private String receiveName;

    @NotNull(message = "手机号不能为空")
    @JsonProperty(value = "phone_number")
    private String phoneNumber;

    @NotNull(message = "详细地址不能为空")
    @JsonProperty(value = "detail_address")
    private String detailAddress;
}
